#include "SocketFactory.h"

SocketFactory::SocketFactory(QObject* parent)
    : QObject(parent), listSockt(new QList<QTcpSocket*>), mapper(new QSignalMapper(this)),
      SocketDisconnectedSignals(new QSignalMapper(this))
{

    // 导入excel多线程
    m_thread = new QThread;
    m_addPlantInfo = new AddPlantInfo;
    m_addPlantInfo->moveToThread(m_thread);
    //初始化交大数据判断字节数
    sizeDatas = 0;
    countDatas.clear();
}
